package cn.pet.service.manage.mapstruct;

import cn.pet.service.manage.entity.PetUser;
import cn.pet.service.manage.entity.dto.UserDTO;
import cn.pet.service.manage.entity.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.factory.Mappers;

/**
 * @author zwr
 * @version 1.0
 * @description TODO
 * @date 2023/2/11 11:52
 */
@Mapper(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface UserMapstruct {

    UserMapstruct INSTANCE = Mappers.getMapper(UserMapstruct.class);

    UserVO userToUserVo(PetUser petUser,@MappingTarget UserVO userVo);


}
